package com.yy.model;

//import java.util.HashSet;
//import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
//import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
//import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.criteria.CriteriaBuilder.In;

import org.hibernate.annotations.Proxy;

import com.yy.dto.ResumeDTO;

@Entity
@Table(name = "user_job", catalog = "jspbighomework")
@Proxy(lazy = false)
public class TbResume implements java.io.Serializable{
	
	private Integer resumeId;
	private Integer userId;
	private Integer jobId;
	private String resumeName;
	private String resumeSex;
	private String resumePhone;
	private String resumeSchool;
	private String resumeIntro;
	private String resumeState;
	public TbResume(){
		
	}
	public TbResume(Integer resumeId,Integer userId,Integer jobId,String resumeName,String resumeSex,String resumePhone,String resumeSchool,String resumeIntro,String resumeState){
		this.resumeId=resumeId;
		this.userId=userId;
		this.jobId=jobId;
		this.resumeName=resumeName;
		this.resumeSex=resumeSex;
		this.resumePhone=resumePhone;
		this.resumeSchool=resumeSchool;
		this.resumeIntro=resumeIntro;
		this.resumeState=resumeState;
		
	}
	
	
	
	
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "resume_id", unique = true, nullable = false)
	public Integer getResumeId() {
		return resumeId;
	}






	public void setResumeId(Integer resumeId) {
		this.resumeId = resumeId;
	}




	
	@Column(name = "user_id")
	public Integer getUserId() {
		return userId;
	}






	public void setUserId(Integer userId) {
		this.userId = userId;
	}





	@Column(name = "job_id")
	public Integer getJobId() {
		return jobId;
	}






	public void setJobId(Integer jobId) {
		this.jobId = jobId;
	}





	@Column(name = "resume_name")
	public String getResumeName() {
		return resumeName;
	}






	public void setResumeName(String resumeName) {
		this.resumeName = resumeName;
	}





	@Column(name = "resume_sex")
	public String getResumeSex() {
		return resumeSex;
	}






	public void setResumeSex(String resumeSex) {
		this.resumeSex = resumeSex;
	}





	@Column(name = "resume_phone")
	public String getResumePhone() {
		return resumePhone;
	}






	public void setResumePhone(String resumePhone) {
		this.resumePhone = resumePhone;
	}





	@Column(name = "resume_school")
	public String getResumeSchool() {
		return resumeSchool;
	}






	public void setResumeSchool(String resumeSchool) {
		this.resumeSchool = resumeSchool;
	}





	@Column(name = "resume_intro")
	public String getResumeIntro() {
		return resumeIntro;
	}






	public void setResumeIntro(String resumeIntro) {
		this.resumeIntro = resumeIntro;
	}





	@Column(name = "resume_state")
	public String getResumeState() {
		return resumeState;
	}






	public void setResumeState(String resumeState) {
		this.resumeState = resumeState;
	}






	public ResumeDTO toDTO(){
		ResumeDTO resumeDTO=new ResumeDTO();
		resumeDTO.setResumeId(this.getResumeId());
		resumeDTO.setUserId(this.getUserId());
		resumeDTO.setJobId(this.getJobId());
		resumeDTO.setResumeName(this.getResumeName());
		resumeDTO.setResumeSex(this.getResumeSex());
		resumeDTO.setResumePhone(this.getResumePhone());
		resumeDTO.setResumeSchool(this.getResumeSchool());
		resumeDTO.setResumeIntro(this.getResumeIntro());
		resumeDTO.setResumeState(this.getResumeState());
		
		return resumeDTO;
		
	}
	

}
